﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MRSite.Entity
{
    public class Entity : Entity<int>, IEntity
    {
    }

    public abstract class Entity<T> : IEntity<T>
    {
        public virtual T id { get; set; }

        public override string ToString()
        {
            return $"[{GetType().Name} {id}]";
        }
    }
}
